package com.time.hellotime.components.login;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.support.annotation.Nullable;

import com.time.hellotime.R;
import com.time.hellotime.base.BaseActivity;

import java.util.Timer;
import java.util.TimerTask;

/**
 * Created by Bing on 2017/11/8.
 * E-mail is tx16bing@163.com
 */

public class CommitSCActivity extends BaseActivity {

    public static void start(Activity activity) {
        Intent intent = new Intent(activity, CommitSCActivity.class);
        activity.startActivity(intent);

    }

    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_commit_sc);
        Timer timer = new Timer();
        TimerTask timerTask = new TimerTask() {
            @Override
            public void run() {
                LoginActivity.start(CommitSCActivity.this);
            }
        };
        timer.schedule(timerTask, 3000);
    }
}
